<template>
	
	<view>
		<!-- 设置列表 -->
		<view class="">
			<block v-for="(item,index) in homelist" :key="index">
				
			<home-list :item="item" :index="index"></home-list>
			</block>
		</view>
		<!-- 按钮退出登录 -->
		<button type="default" class="button">退出登录</button>
	</view>
</template>

<script>
	import homeList from '../../components/home/home-list.vue'
	import '@/common/common.css'
	export default {
		components:{
			homeList
		},
		data() {
			return {
				homelist:[
					{
						icon:'',
						color:'#5ABCFF',
						title:'账号与安全',
						navtype:'navigateTo',
						url:'../set-safe/set-safe'
					},
					{
						icon:'',
						color:'#FF7B3F',
						title:'绑定邮箱',
						navtype:'navigateTo',
						url:'../set-safe/set-email'
					},
					{
						icon:'',
						color:'#5BBCFF',
						title:'资料编辑',
						navtype:'navigateTo',
						url:'set-user-info'
					},
					{
						icon:'',
						color:'#EB3941',
						title:'小纸条',
						navtype:'',
						url:''
					},
					{
						icon:'',
						color:'#EB3941',
						title:'清除缓存',
						navtype:'',
						url:''
					},
					{
						icon:'',
						color:'#EB3941',
						title:'意见反馈',
						navtype:'navigateTo',
						url:'../feedback/feedback'
					},
					{
						icon:'',
						color:'#EB3941',
						title:'关于',
						navtype:'navigateTo',
						url:'../about/about'
					}
					
				],
			}
		},
		methods: {
			go(){
				
				uni.navigateTo({
					url:'../about/about',
				
				})
			}
		}
	}
</script>

<style>
.button{
	background-color: #FFE933;
	margin: 40upx 40upx;
}
</style>
